package com.jmb.api.common.constant;

import io.jsonwebtoken.security.Keys;

import javax.crypto.SecretKey;

// Common Redis 常量
public class RedisConstant {
    public static final String USER_TOKEN_KEY = "user:token:";
    public static final String USER_LOGIN_KEY = "user:login:";
    public static final String USER_USERID_KEY = "userId";
    public static final Integer USER_LOGIN_CAPTCHA_TTL_SEC = 60;
    public static final Long USER_LOGIN_TOKEN_TTL_SEC = 60L * 60 * 24 * 30;;
    public static SecretKey tokenSignKey = Keys.hmacShaKeyFor("M0PKKI6pYGVWWfDZw90a0lTpGYX1d4AQ".getBytes());
}
